<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@include file="common/header.jsp" %>
<div class="clearfix"></div>
<div class="row">
    <div class="col-md-12 col-sm-12 col-xs-12">
        <div class="x_panel">
            <div class="x_title">
                <h2>项目详细<i class="fa fa-user"></i>
                    <small>${aqbPro.proCode}</small>
                </h2>
                <div class="clearfix"></div>
            </div>
            <div class="x_title">
                <h2>项目详细信息</h2>
                <div class="clearfix"></div>
            </div>
            <div class="x_content" style="display: block;">
                <br>
                <div class="form-horizontal form-label-left">
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">项目名称<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12" value="${aqbPro.proName}"
                                   type="text" readonly="readonly">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">借贷人<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12" value="${aqbPro.userName}"
                                   type="text" readonly="readonly">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">项目类型<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12"
                                   value="<c:if test="${aqbPro.proType==1}">车贷</c:if> <c:if test="${aqbPro.proType==2}">房贷</c:if><c:if test="${aqbPro.proType==3}">金融消费</c:if>"
                                   type="text" readonly="readonly">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">借贷金额<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12" value="${aqbPro.proAmount}"
                                   type="text" readonly="readonly">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">项目周期<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12" value="${aqbPro.period}个月"
                                   type="text" readonly="readonly">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">已还本金<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12" value="${aqbPro.payMoneySum}"
                                   type="text" readonly="readonly">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">已付利息<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12" value="${aqbPro.payInterestSum}"
                                   type="text" readonly="readonly">
                        </div>
                    </div>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">还款方式<span
                                class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                            <input class="form-control col-md-7 col-xs-12"
                                   value="<c:if test="${aqbPro.returnType==1}">等额本金</c:if><c:if test="${aqbPro.returnType==2}">先息后本</c:if>"
                                   type="text" readonly="readonly">
                        </div>
                    </div>

                    <c:if test="${aqbPro.proStatus !=0}">
                        <div class="item form-group">
                            <label class="control-label col-md-3 col-sm-3 col-xs-12">审核通过日期<span
                                    class="required">*</span>
                            </label>
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input class="form-control col-md-7 col-xs-12" value="${aqbPro.assessDate}"
                                       type="text" readonly="readonly">
                            </div>
                        </div>
                    </c:if>
                    <div class="item form-group">
                        <label class="control-label col-md-3 col-sm-3 col-xs-12">审核信息<span
                                class="required">*</span>
                        </label>
                            <c:if test="${aqbPro.proStatus==0}">
                                <div class="col-md-6 col-sm-6 col-xs-12">
                                    <input class="form-control col-md-7 col-xs-12 pSummary" type="text" id="detail-panel-msg0">
                                    <img src="${aqbPro.topicPath}" style="width: 100px;height: 120px">
                                </div>
                            </c:if>
                        <c:if test="${aqbPro.proStatus !=0}">
                            <div class="col-md-6 col-sm-6 col-xs-12">
                                <input class="form-control col-md-7 col-xs-12" value="${aqbPro.pSummary}"
                                       title="${aqbPro.pSummary}"
                                       type="text" readonly="readonly">
                                <img src="${aqbPro.topicPath}" style="width: 100px;height: 120px">
                            </div>
                        </c:if>
                    </div>
                    <div class="form-group">
                        <c:if test="${aqbPro.proStatus==0}">
                            <div class="col-md-6 col-md-offset-3">
                                    <button  type="button" prostatus='1' proCode='${aqbPro.proCode}' class="btn btn-success status2">审核通过</button>
                                    <button  type="button" prostatus='2' proCode='${aqbPro.proCode}' class="btn btn-success status3">审核不通过
                                    </button>
                            </div>
                        </c:if>
                        <a href="/backend/proList"><button type="button" class="btn btn-primary" id="back1">返回</button></a>
                    </div>
                    <div class="clearfix"></div>
                    <br/><br/>
               </div>
            </div>
            <div class="clearfix"></div>
            <br/><br/>
        </div>
    </div>
    <%@include file="common/footer.jsp" %>
    <script type="text/javascript" src="${pageContext.request.contextPath }/statics/backendstatics/js/back.js"></script>